Optimal. Leaf size=241 \[ \frac {\cosh (e+f x) \sinh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 b f}+\frac {2 (a-2 b) E\left (\text {ArcTan}(\sinh (e+f x))\left |1-\frac {b}{a}\right .\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 b^2 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {(a-3 b) F\left (\text {ArcTan}(\sinh (e+f x))\left |1-\frac {b}{a}\right .\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a b f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {2 (a-2 b) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{3 b^2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 241, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {3271, 427, 545,
429, 506, 422} \begin {gather*} \frac {2 (a-2 b) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} E\left (\text {ArcTan}(\sinh (e+f x))\left |1-\frac {b}{a}\right .\right )}{3 b^2 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {(a-3 b) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} F\left (\text {ArcTan}(\sinh (e+f x))\left |1-\frac {b}{a}\right .\right )}{3 a b f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {2 (a-2 b) \tanh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 b^2 f}+\frac {\sinh (e+f x) \cosh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 b f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 422
Rule 427
Rule 429
Rule 506
Rule 545
Rule 3271
Rubi steps
\begin {align*} \int \frac {\cosh ^4(e+f x)}{\sqrt {a+b \sinh ^2(e+f x)}} \, dx &=\frac {\left (\sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {\left (1+x^2\right )^{3/2}}{\sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{f}\\ &=\frac {\cosh (e+f x) \sinh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 b f}+\frac {\left (\sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {-a+3 b-2 (a-2 b) x^2}{\sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{3 b f}\\ &=\frac {\cosh (e+f x) \sinh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 b f}-\frac {\left (2 (a-2 b) \sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {x^2}{\sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{3 b f}+\frac {\left ((-a+3 b) \sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{3 b f}\\ &=\frac {\cosh (e+f x) \sinh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 b f}-\frac {(a-3 b) F\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a b f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {2 (a-2 b) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{3 b^2 f}+\frac {\left (2 (a-2 b) \sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {\sqrt {a+b x^2}}{\left (1+x^2\right )^{3/2}} \, dx,x,\sinh (e+f x)\right )}{3 b^2 f}\\ &=\frac {\cosh (e+f x) \sinh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 b f}+\frac {2 (a-2 b) E\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 b^2 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {(a-3 b) F\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a b f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {2 (a-2 b) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{3 b^2 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.61, size = 179, normalized size = 0.74 \begin {gather*} \frac {4 i \sqrt {2} a (a-2 b) \sqrt {\frac {2 a-b+b \cosh (2 (e+f x))}{a}} E\left (i (e+f x)\left |\frac {b}{a}\right .\right )-2 i \sqrt {2} \left (2 a^2-5 a b+3 b^2\right ) \sqrt {\frac {2 a-b+b \cosh (2 (e+f x))}{a}} F\left (i (e+f x)\left |\frac {b}{a}\right .\right )+b (2 a-b+b \cosh (2 (e+f x))) \sinh (2 (e+f x))}{6 b^2 f \sqrt {4 a-2 b+2 b \cosh (2 (e+f x))}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.69, size = 356, normalized size = 1.48
method | result | size |
default | \(\frac {\sqrt {-\frac {b}{a}}\, b \left (\cosh ^{4}\left (f x +e \right )\right ) \sinh \left (f x +e \right )+\sqrt {-\frac {b}{a}}\, a \left (\cosh ^{2}\left (f x +e \right )\right ) \sinh \left (f x +e \right )-\sqrt {-\frac {b}{a}}\, b \left (\cosh ^{2}\left (f x +e \right )\right ) \sinh \left (f x +e \right )+a \sqrt {\frac {b \left (\cosh ^{2}\left (f x +e \right )\right )}{a}+\frac {a -b}{a}}\, \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \EllipticF \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right )-\sqrt {\frac {b \left (\cosh ^{2}\left (f x +e \right )\right )}{a}+\frac {a -b}{a}}\, \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \EllipticF \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right ) b -2 \sqrt {\frac {b \left (\cosh ^{2}\left (f x +e \right )\right )}{a}+\frac {a -b}{a}}\, \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \EllipticE \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right ) a +4 \sqrt {\frac {b \left (\cosh ^{2}\left (f x +e \right )\right )}{a}+\frac {a -b}{a}}\, \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, b \EllipticE \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right )}{3 b \sqrt {-\frac {b}{a}}\, \cosh \left (f x +e \right ) \sqrt {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}\, f}\) | \(356\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.09, size = 25, normalized size = 0.10 \begin {gather*} {\rm integral}\left (\frac {\cosh \left (f x + e\right )^{4}}{\sqrt {b \sinh \left (f x + e\right )^{2} + a}}, x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 806 vs.
\(2 (249) = 498\).
time = 1.11, size = 806, normalized size = 3.34 \begin {gather*} \frac {\sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b} e^{\left (f x + e\right )}}{24 \, b f} + \frac {{\left (\frac {4 \, {\left (a \sqrt {b} e^{\left (4 \, e\right )} - 2 \, b^{\frac {3}{2}} e^{\left (4 \, e\right )}\right )} \log \left ({\left | -{\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )} b - 2 \, a \sqrt {b} + b^{\frac {3}{2}} \right |}\right )}{b} + \frac {2 \, {\left (9 \, a^{2} e^{\left (4 \, e\right )} - 21 \, a b e^{\left (4 \, e\right )} + 16 \, b^{2} e^{\left (4 \, e\right )}\right )} \arctan \left (-\frac {\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}}{\sqrt {-b}}\right )}{\sqrt {-b} b} - \frac {3 \, {\left (6 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{3} a^{2} e^{\left (4 \, e\right )} - 14 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{3} a b e^{\left (4 \, e\right )} + 5 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{3} b^{2} e^{\left (4 \, e\right )} - 4 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{2} b^{\frac {5}{2}} e^{\left (4 \, e\right )} - 10 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )} a^{2} b e^{\left (4 \, e\right )} + 18 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )} a b^{2} e^{\left (4 \, e\right )} - 7 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )} b^{3} e^{\left (4 \, e\right )} - 4 \, a b^{\frac {5}{2}} e^{\left (4 \, e\right )} + 6 \, b^{\frac {7}{2}} e^{\left (4 \, e\right )}\right )}}{{\left ({\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{2} - b\right )}^{2} b}\right )} e^{\left (-3 \, e\right )}}{24 \, b f^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\mathrm {cosh}\left (e+f\,x\right )}^4}{\sqrt {b\,{\mathrm {sinh}\left (e+f\,x\right )}^2+a}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________